let isDev = process.env.NODE_ENV == 'development';

//src\router\index.js

import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

let arrRoute = [
  // {
  //   path: '/',
  //   name: 'index',
  //   component: () => {
  //     return import('@/Views/index');
  //   },
  // },
  {
    path: '/dev-guide',
    name: 'DevGuide',
    component: () => {
      return import('@/views/DevGuide.vue');
    },
    meta: { devOnly: true },
  },
  {
    path: '/enterList',
    name: 'enterList',
    component: () => {
      return import('@/Views/enterList');
    },
  },
  {
    path: '/login',
    name: 'login',
    component: () => {
      return import('@/Views/login');
    },
  },
  {
    path: '/client',
    name: '客户端客户端',
    component: () => {
      return import('@/Views/client.vue');
    },
  },
  {
    path: '/periodicity',
    name: 'test',
    component: () => {
      return import('@/Views/test.vue');
    },
  },
  {
    path: '/temp2',
    name: 'temp2',
    component: () => {
      return import('@/Views/temp2.vue');
    },
  },
  // {
  //   path: '/temp3',
  //   name: 'temp3',
  //   component: () => {
  //     return import('@/Views/temp3.vue');
  //   },
  // },

  {
    path: '/test2',
    name: '生产-周期性',
    component: () => {
      return import('@/Views/test2.vue');
    },
  },
];

export default new Router({
  routes: arrRoute,
});
